import request from "../../utils/request";

//  登录
export function login(data){
    return request({
        url: '/auth/login',
        method: 'post',
        data
    })
}

//  快捷登录
export function quickLogin(data){
    return request({
        url: '/auth/quickLogin',
        method: 'post',
        params: data
    })
}

//  获取验证码
export function getVerifyCode(params){
    return request({
        url: '/auth/code',
        method: 'get',
        params
    })
}

//  获取QQ登录code
export function getQQCode(){
    return request({
        url: '/tencent/getQQCode',
        method: 'get'
    })
}

//  第三方登录
export function authBinding(type){
    return request({
        url: '/auth/binding/' + type,
        method: 'get'
    })
}